home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-06-28 | 3.2 KB | 99 lines | [TEXT/MPS ] |
- #------------------------------------------------------------------------------
- #
- # Apple Macintosh Developer Technical Support
- #
- # Program: MoreFilesLib
- # File: MoreFilesLib.make
- #
- # Copyright © 1996-1997 Apple Computer, Inc.
- # All rights reserved.
- #
- #------------------------------------------------------------------------------
-
- # The three possible targets for this makefile
- #
- # The default name is LibName and builds the 68K library
- # named MoreFilesLib.o
- #
- # PowerPC library is named MoreFilesLib.PPC and is built with:
- # make -f MoreFilesLib.make MoreFilesLib.PPC
- #
- # The "Fat" version isn't actually fat, it just builds both 68K and
- # PowerPC versions. Build it with:
- # make -f MoreFilesLib.make MoreFilesLib.FAT
- #
- LibName = 'MoreFilesLib.o'
- LibNamePPC = 'MoreFilesLib.PPC'
- LibNameFAT = 'MoreFilesLib.FAT'
-
- MoreFiles.hdrs = ":C Headers:"
- projsrc = ":Sources:"
- obj = :Objects:
- objppc = :ObjectsPPC:
- libs = :Libs:
-
- DebugTarget = #(debug)
- MacsBugSyms = -mbg off # turn this on to debug 68K code with MacsBug or other low-level debuggers
-
- # SymOptions and OptOptions are mutually exclusive. Enable as appropriate
- SymOptions = -sym off # turn this on to debug with SADE/R2Db
- COptOptions = -opt on # turn this off to build debug 68K code
- MrCOptOptions = -opt speed # turn this off to build debug PowerPC code
-
- IncludesFolders = -i {MoreFiles.hdrs}
- COptions = {IncludesFolders} {SymOptions} {COptOptions} {MacsBugSyms} -r
- MrCOptions = {IncludesFolders} {SymOptions} {MrCOptOptions}
- LibOptions = {SymOptions}
- LibOptionsPPC = -xm l {SymOptions}
-
- #------------------------------------------------------------------------------
- # These are modified default build rules. These allow us to build using both
- # SC (68K) and MrC (PowerPC) from the same set of sources
- #------------------------------------------------------------------------------
- {obj} ƒ {projsrc}
-
- .c.o ƒ .c
- Echo "# compiling "{Default}.c" using "{C}
- {C} {COptions} {CAltOptions} {DepDir}{Default}.c -o {TargDir}{Default}.c.o
-
- {objppc} ƒ {projsrc}
-
- .c.x ƒ .c
- Echo "# compiling "{Default}.c" using MrC"
- MrC {MrCOptions} {DepDir}{Default}.c -o {TargDir}{Default}.c.x
-
- #------------------------------------------------------------------------------
- # These are the objects that we want to include in the library.
- #------------------------------------------------------------------------------
- LibObjects = ∂
- {obj}DirectoryCopy.c.o ∂
- {obj}FileCopy.c.o ∂
- {obj}FSpCompat.c.o ∂
- {obj}FullPath.c.o ∂
- {obj}IterateDirectory.c.o ∂
- {obj}MoreDesktopMgr.c.o ∂
- {obj}MoreFiles.c.o ∂
- {obj}MoreFilesExtras.c.o ∂
- {obj}Search.c.o
-
- LibObjectsPPC = ∂
- {objppc}DirectoryCopy.c.x ∂
- {objppc}FileCopy.c.x ∂
- {objppc}FSpCompat.c.x ∂
- {objppc}FullPath.c.x ∂
- {objppc}IterateDirectory.c.x ∂
- {objppc}MoreDesktopMgr.c.x ∂
- {objppc}MoreFiles.c.x ∂
- {objppc}MoreFilesExtras.c.x ∂
- {objppc}Search.c.x
-
- {LibNameFAT} ƒ {LibName} {LibNamePPC}
-
- {LibName} ƒƒ {LibObjects}
- Echo "# building 68k library"
- Lib {LibObjects} {LibOptions} -o "{libs}{Targ}{DebugTarget}"
-
- {LibNamePPC} ƒƒ {LibObjectsPPC}
- Echo "# building PowerPC library"
- PPCLink {LibObjectsPPC} {LibOptionsPPC} -o "{libs}{Targ}{DebugTarget}"
-